import React from "react";
import {Button} from 'antd'
import NewsPublish from "../../../../components/PublishManage/NewsPublish";
import usePublish from "../../../../components/PublishManage/usePublish";
export default function Sunset() {
    // 3=== 已下线的
    const {dataSource,handleDelete} = usePublish(3)

    return (
        <div>
            <NewsPublish dataSource={dataSource} button={(id)=>
                <Button danger onClick={()=>handleDelete(id)}>
                    删除
                </Button>}>
            </NewsPublish>
        </div>
    )
}
